@import 'variables.less';

@import 'includes/editor-tools.less';
@import 'includes/details.less';
@import 'includes/product-title.less';
@import 'includes/wiki-common.less';
@import 'includes/download-firefox.less';

article {
  background: #fff;
  padding: 30px;

  h1:first-child {
    margin-top: 0;
    padding-top: 0;
  }

  &.locked > * {
    opacity: 0.3;
  }

  > * {
    transition: opacity 1s;
  }
}

#edit-document label {
    font-weight: bold;
}

#editing-tools-sidebar {
  .showfor {
    background: @sidebarBackground url('../img/grain.png');
    font-size: 14px;
    line-height: 14px;
    padding: 10px 0 20px 30px;

    > div {
      padding-left: 10px;
      position: relative;
      text-transform: none;

      &:first-child {
        margin-top: 10px;
      }
      &:not(:last-child) {
        margin-bottom: 10px;
      }

      h2 {
        font-size: 14px;
        margin: 0 0 3px;
      }

      .selectbox-wrapper {
        select {
          width: 150px;
          text-transform: none;
        }
      }
    }
  }

  .html-rtl & .showfor {
    padding-left: 0;
    padding-right: 30px;

    > div {
      padding-left: 0;
      padding-right: 10px;
    }
  }
}

.sidebar-nav {
  font-size: 14px;

  &.topics {
    background-color: #fff;
    margin-top: 30px;

    > li {
      background-color: #fff;

      &.selected {
        > a,
        > a:visited {
          background: #f3f3f3;
          border: none;
          border-left: 4px solid #000;
          color: #000;
          font-weight: bold;

          &:before {
            content: none;
          }

          &:hover {
            color: #000;
          }
        }

        &.has-subtopics {
          > a {
            background: #fff;
          }
        }
      }

      > a,
      > a:visited, {
        color: #000;
        background: #fff;
        border: none;
        border-left: 4px solid #e7e7e7;
        text-transform: none;

        &:before {
          content: none;
        }

        &:hover {
          color: @textDarkBlue;
        }
      }

      &.subtopic-selected {
        > a,
        > a:visited {
          background: #fff;
          border-left: 4px solid #000;
        }
      }

      > ul {
        list-style: none;
        margin: 0;
        padding: 0;
        text-transform: none;

        > li {
          > a,
          > a:visited {
            background: #f3f3f3;
            border-left: none;
            color: #000;
            display: block;
            padding: 12px 20px;
            text-decoration: none;

            &:hover {
              color: @textDarkBlue;
            }
          }

          &.selected {
            > a,
            > a:visited {
              border-left: 4px solid #000;
              font-weight: bold;

              &:hover {
                color: #000;
              }
            }
          }
        }
      }
    }

    .html-rtl &.topics > li {
      &.selected {
        > a,
        > a:visited {
          border-left: none;
          border-right: 4px solid #000;
        }
      }

      > a,
      > a:visited, {
        border-left: none;
        border-right: 4px solid #e7e7e7;
      }

      &.subtopic-selected {
        > a,
        > a:visited {
          border-left: none;
          border-right: 4px solid #000;
        }
      }
    }
  }

  &.related-products {
    > li {
      > a {
        > span {
          box-sizing: border-box;
          display: block;
          min-height: 24px;
          padding-left: 34px;
          padding-top: 3px;
          position: relative;

          img {
            background-repeat: no-repeat;
            background-size: cover;
            height: 24px;
            left: 0;
            margin-top: -12px;
            position: absolute;
            top: 50%;
            width: 24px;
          }
        }
      }
    }
  }
}

#os_input,
#browser_input {
  cursor: pointer;
  padding: 0 10px;
  width: 120px !important;
  background: #fff @iconsSprite 60px -280px no-repeat;
}

.wait {
  display: none;
}

.wiki-doc {
  color: #000;
  padding-left: 80px;

  h1 {
    &:first-child {
      border: 0;
    }
  }

  .document-vote {
    margin: 10px 0 0 0;
  }

  #doc-contributors {
    display: block;
    min-height: 100px;
    padding: 30px 0 10px 0;

    .help-title-prefix {
      color: #000;
      float: left;
      font-size: 24px;
      padding-left: 5px;
    }

    .help-title {
      color: #000;
      float: left;
      font-size: 24px;
      padding-left: 15px;
      width: 32%;
    }

    .contributors {
      float: right;
      padding-left: 40px;
      width: 54%;
    }

    .help-link {
      color: #000;
      float: right;
      padding-top: 10px;
    }

    a.user, a.user:visited, a.user:hover {
      color: @textLightGrey;
    }
  }

  .separator {
    width: 100%;
    height: 2px;
    background: #000;
  }
}

#doc-tools {
  .sidebar-nav {
    background-color: #fff;
    margin-bottom: 20px;
    margin-top: 30px;

    > li {
      background-color: #fff;
      border: none;

      &.selected {
        > a,
        > a:visited {
          background: #f3f3f3;
          border: none;
          border-left: 4px solid #000;
          color: #000;
          font-weight: bold;

          &:before {
            content: none;
          }

          &:hover {
            color: #000;
          }
        }

        > span {
          border: none;

          &:before {
            content: none;
          }
        }

        &.has-subtopics {
          > a {
            background: #fff;
          }
        }
      }

      &#editing-tools-sidebar {
        > span {
          background: #f3f3f3;
          border: none;

          &:after {
            background: none;
            border-color: #000 transparent transparent;
            border-style: solid;
            border-width: 8px;
            content: ' ';
            height: 0;
            margin-top: -5px;
            width: 0;
          }

          &:hover {
            color: #000;
          }
        }

        &.selected {
          > span {
            background: #fff;

            &:after {
              background: none;
              border-color: transparent transparent #000 transparent;
              border-style: solid;
              border-width: 8px;
              content: ' ';
              height: 0;
              margin-top: -11px;
              width: 0;
            }
          }
        }
      }

      > a,
      > a:visited, {
        color: #000;
        background: #fff;
        border: none;
        border-left: 4px solid #e7e7e7;
        text-transform: none;

        &:before {
          content: none;
        }

        &:hover {
          color: @textDarkBlue;
        }
      }

      &.subtopic-selected {
        > a,
        > a:visited {
          background: #fff;
          border-left: 4px solid #000;
        }
      }

      .sidebar-nav {
        list-style: none;
        margin: 0;
        padding: 0;
        text-transform: none;

        > li {
          > a,
          > a:visited {
            background: #f3f3f3;
            border-left: none;
            color: #000;
            display: block;
            padding: 12px 20px;
            text-decoration: none;

            &:hover {
              color: @textDarkBlue;
            }
          }

          &.selected {
            > a,
            > a:visited {
              border-left: 4px solid #000;
              font-weight: bold;

              &:before {
                content: none;
              }

              &:hover {
                color: #000;
              }
            }
          }
        }
      }
    }
  }
}

/* Document Translation page */
#localize-document {
  .buttons-and-preview {
    /* Taken from Bootstrap V3 */
    .alert {
      background: #FFE url("../img/warning-stripes.png") repeat-x scroll left top;
      border: 1px solid transparent;
      border-radius: 4px;
      padding: 15px;
      margin-bottom: 20px;
    }

    .error {
      background-color: #f2dede;
      border-color: #ebccd1;
      color: #a94442;
    }

    .info {
      background-color: #fcf8e3;
      border-color: #faf2cc;
      color: #8a6d3b;
    }

    .success {
      background-color: #dff0d8;
      border-color: #d6e9c6;
      color: #3c763d;
    }
  }
}

/* Document history page */
#revision-list {
  form {
    clear: both;
    margin: 20px 0;
    padding-top: 20px;

    select,
    input {
      margin: 0 10px;
    }
  }

  ul {
    clear: both;
    margin: 5px 0;
    padding: 0;
    text-align: left;

    li {
      list-style: none;
      padding: 4px 0;

      > div {
        display: inline-block;
      }

      &:nth-child(odd) {
        background: #f2f2f2;
      }

      &.current {
        background: #daedf6;
        border-bottom: solid 2px #a3b1b8;
        border-top: solid 2px #a3b1b8;

        .status {
          color: #223d61;
          font-weight: bold;
        }
      }

      &.rejected *,
      &.rejected div.creator {
        color: #999;
      }

      &.header {
        color: #666 !important;
        font-weight: bold;
      }
    }
  }

  .radio {
    text-align: center;
    padding: 0 0 0 2px;
    width: 15px;

    input {
      margin: 0;
    }
  }

  .date {
    padding: 0 0 0 10px;
    width: 115px;
  }

  .status {
    width: 90px;

    a {
      font-weight: bold;
    }
  }

  .significance {
    width: 35px;
  }

  .creator {
    color: #333;
    width: 105px;
  }

  .comment {
    width: 140px;

    &.wider {
      width: 330px;
    }
  }

  .showdiff {
    margin: 2px;
    width: 16px;

    .loading {
      height: 16px;
      width: 16px;
    }
    .close-diff {
      display: none;
    }
  }

  .title {
    width: 290px;
    padding-right: 9px;

    .locale {
      background: #ddd;
      padding: 0 2px;
      font-size: 0.7em;
      box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.5);
      position: relative;
      bottom: 1px;
      margin-right: 5px;
    }
  }

  .l10n,
  .edit,
  .delete {
    text-align: center;
    text-decoration: none;
    width: 25px;

    a {
      display: block;
    }
  }

  .edit {
    a {
      background: url("../img/icons.actions.png") no-repeat scroll left -25px transparent;
      height: 12px;
      text-decoration: none;
      width: 12px;
    }
  }

  .delete {
    a {
      background: url("../img/icons.actions.png") no-repeat scroll left 0px transparent;
      height: 12px;
      width: 12px;
    }
  }

  .l10n {
    a {
      &.yes {
        background: url("../img/wiki/icon-yes.gif") no-repeat scroll left top transparent;
        height: 12px;
        width: 12px;
      }

      &.markasready,
      &.no {
        background: url("../img/wiki/icon-no.gif") no-repeat scroll left top transparent;
        height: 12px;
        width: 12px;
      }

      &.markasready:hover {
        background: url("../img/wiki/icon-yes.gif") no-repeat scroll left top transparent;
        cursor: pointer;
        height: 12px;
        width: 12px;
      }
    }
  }

  .compare {
    height: 20px;
    padding: 0 0 0 50px;
    text-align: left;

    &.top {
      background: transparent url(../img/wiki/compare.arrows.png) no-repeat 4px 5px;
      padding-bottom: 5px;
    }

    &.bottom {
      background: transparent url(../img/wiki/compare.arrows.png) no-repeat 4px -40px;
      padding-top: 10px;
    }
  }


  .loading {
    display: none;
    height: 20px;
    width: 20px;
  }
}

.html-rtl {
  #revision-list {
    ul {
      text-align: right;
    }

    .date,
    .date-head {
      padding: 0 10px 0 0;
    }
  }
}

#contributors {
  margin: 30px 0;

  h1 {
    font-size: 18px;
  }
}

#delete-doc {
  margin: 50px 0 0;
  padding: 0 10px 0 0;
  text-align: right;
}

.html-rtl {
  #delete-doc {
    padding: 0 0 0 10px;
    text-align: left;
  }
}

#show-graph {
  color: #447BC4;
  cursor: pointer;
  float: right;
  font-size: 13px;
  margin: 1px 0 10px;
}

#helpful-graph {
  display: none;
}

/* Revision diffs */
.revision-diff {
  header {
    margin: 20px 0 0;
  }

  h3 {
    font-weight: bold;
  }

  h4 {
    font-weight: bold;
    margin: 10px 0 0;
  }

  div.col {
    display: inline-block;
    padding-right: 1%;
    vertical-align: top;
    width: 48%;
  }

  div.picker {
    display: block;
    padding: 0 10px 0 0;
    text-align: right;
    width: auto;
  }

  a.toggle-diff {
    float: right;
    margin: 0 10px 0 0;
  }

}

.html-rtl {
  .revision-diff {
    div.picker {
      text-align: left;
    }

    a.toggle-diff {
      float: left;
      margin: 0 0 0 10px;
    }
  }
}

#diff-picker-kbox {
    width: 770px;
}

textarea {
  width: 630px;
}

#doc-source {
  textarea {
    height: 400px;
  }
}

/* New / Edit / Translate Document */
#document-form {
  form {
    padding: 0 0 20px;
  }
}

form {
  ul {
    margin: 0;
    padding: 0;
  }

  > ul {
    vertical-align: top;

    > li {
      clear: both;
      list-style: none;
      padding: 15px 0;

      label {
        color: #333;
        display: block;
        font-weight: bold;
        margin: 0 0 5px;
      }
    }

    li {
      li {
        display: inline-block;
        padding: 0 10px 0 0;
        vertical-align: top;
        width: 45%;

        label {
          color: #666;
          display: inline;
        }
      }
    }
  }

  li.comment {
    padding-top: 0;
  }

  input[type="text"] {
    width: 630px;
  }

  label[for="id_is_localizable"],
  label[for="id_is_archived"],
  label[for="id_allow_discussion"],
  label[for="id_needs_change"],
  label[for="id_show_share_link"],
  label[for="id_allow_discussion"] {
    display: inline;
  }

  li {
    > input[type="checkbox"] {
      margin: 0 .5em;
    }
  }

  input#id_comment {
    width: 450px;
  }

  ul.topics {
    li {
      display: block;
      width: auto;
    }

    > li {
      border-bottom: solid 1px #eee;
      padding: 10px 0;
    }

    ul.subtopics {
      margin-left: 25px;
    }
  }

  ul.products {
    > li {
      display: block;
      width: auto;
    }
  }
}

.html-rtl form > ul > li li {
    padding: 0 0 0 10px;
}

#submit-modal {
  .comment,
  .notifications,
  .no-update {
    margin: 10px 0;
  }
}

textarea[name="content"] {
    height: 500px;
}

.editor {
    padding: 0;
}

.html-rtl {
  .editor {
    float: right;
  }
}

#preview {
  margin: 20px 0 0;
  position: relative;

  .showfor {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px #999;
    left: 10px;
    margin: -90px 0 0;
    padding: 15px;
    position: fixed;
    top: 50%;
    width: 165px;
    z-index: 5;

    h1 {
      font-size: 20px;
    }

    .exit {
      font-size: 12px;
      font-weight: bold;
      position: absolute;
      right: 10px;
      top: 10px;
      z-index: 6;
      &:hover {
        color: #999;
        cursor: pointer;
      }
    }
  }
}

.translate {
  #preview {
    .showfor {
      border-radius: 0;
      box-shadow: none;
      float: left;
      margin: 0;
      position: static;
    }

    #doc-content {
      float: right;
      width: 700px;
    }
  }
}

#preview-bottom {
  display: none;
}

#review-revision {
  label {
    font-weight: bold;
  }

  .showfor {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px #999;
    display: none;
    left: 10px;
    margin: -90px 0 0;
    padding: 15px;
    position: fixed;
    top: 50%;
    width: 165px;
    z-index: 5;
  }

  .unreviewed-revision {
    font-weight: bold;
    font-size: 120%;
  }

  ul.revision-comment {
    list-style-type: disc;
    margin-top: -10px;
    padding: 0px 15px 0;
  }

  .open {
    .showfor {
      display: block;

      h1 {
        font-size: 20px;
      }

      input {
        width: auto !important; /* temp hack workaround */
      }
    }
  }
}

.html-rtl {
  #preview,
  #review-revision {
    .showfor {
      left: 100px;
      right: auto;
    }
  }
}

#search-related {
  box-sizing: border-box;
  width: 100%;
}

#related-docs-list {
  margin-top: 10px;

  > li {
    background: #f0f0f0;
    border: 1px solid @borderLightGrey;
    display: block;
    margin-bottom: 8px;
    padding: 8px 26px 8px 5px;
    position: relative;
    width: auto;

    input {
      display: none;
    }

    .close-button {
      cursor: pointer;
      font-size: 16px;
      font-weight: bold;
      height: 16px;
      line-height: 16px;
      margin-top: -8px;
      position: absolute;
      right: 5px;
      text-align: center;
      top: 50%;
      width: 16px;

      &:before {
        content: '\2715'; /* ✕ */
      }
    }
  }

  > li.empty-message {
    background: transparent;
    border: 0;
    padding: 0;
  }
}

/* Translate specific */

.translate {
  .recent-revisions {
    li {
      margin: 10px 0;
      padding: 0;
    }
  }
}
ul.description {
  li {
    list-style: none;
    padding: 15px 0;

    &:first-child {
      border: none;
    }
  }

  h3 {
    color: #333;
    font-size: 13px;
    font-weight: bold;
    margin: 0 0 5px;
  }

  input[type="text"] {
    width: 98%;
  }

  textarea {
    height: 100px;
    padding: 2px;
    width: 98%;
  }
}

div.approved,
div.localized {
  display: inline-block;
  vertical-align: top;
  width: 49%;

  p {
    min-height: 35px;
  }

  .editor-tools {
    height: 80px;
  }
}

#content-fields {
  padding: 15px 0;

  h3 {
    color: #333;
    font-size: 13px;
    font-weight: bold;
    margin: 0 0 5px;
  }

  div.val {
    border: solid 1px #999;
    height: 500px;
    overflow: auto;
    padding: 2px;
    width: 100%;
  }

  textarea {
    height: 495px;
    margin: 0 0 15px;
    padding: 2px;
    width: 98%;
  }

  .approved {
    textarea {
      resize: none;
    }
  }

  .editor {
    margin: 10px 0 0;
    padding: 0;
    width: 100%;
  }

  #content-or-diff {
    margin-top: 96px;

    &.content {
      .diff-this {
        display: none;
      }
    }

    &.diff {
      textarea {
        display: none;
      }
    }

    a {
      cursor: pointer;
      float: right;
      margin: 0 0 15px;
    }
  }

  .diff-this {
    height: 500px;
    overflow: auto;
    width: 99%;
  }
}

body.translate {
  /* Override the translate page to have fluid width */
  .container_12 {
    margin: 0 25px;
    width: auto;
  }

  #main-container {
    max-width: 100%;
  }

  #doc-tools {
    width: 250px;
    float: left;
    margin-right: 40px;
  }

  #localize-document {
    float: left;
    width: calc(~"100% - 351px");
  }

  #main-content > div {
    width: 100%;
    overflow: auto;
  }
}

/* Review */
#revision-content,
#reision-html {
    margin: 10px 0;

  pre {
    white-space: pre-wrap;
  }
}


body.review {
  #actions {
    margin: 20px 0;
  }

  #content-fields {
    textarea {
      height: 250px;
      margin: 5px 0 0;
    }
  }
}

#approve-modal {
  p {
    margin: 0 0 10px;

    &.warning {
      background: #FFF9DB url(../img/wiki/bkg.warning.png) repeat-y left top;
      padding: .5em 1em .5em 2em;
    }
  }

  label {
    font-weight: normal;
  }

  li {
    list-style: none;
    padding: 5px;
    position: relative;

    div.help-text {
      background: #fff;
      border-radius: 0 0 10px 10px;
      box-shadow: 0 10px 10px rgba(0,0,0,0.25), inset -1px -1px 1px rgba(0,0,0,0.125), inset 1px 0 1px rgba(255,255,255,0.25);
      color: #000;
      display: none;
      left: 23px;
      padding: 10px 15px;
      position: absolute;
      top: 20px;
      z-index: 999;
    }

    &:hover {
      border-radius: 10px 10px 0 10px;
      box-shadow: 0 0 10px rgba(0,0,0,0.25), inset -1px -1px 1px rgba(0,0,0,0.125), inset 1px 0 1px rgba(255,255,255,0.25);

      label {
        position: relative;
        z-index: 1000;
      }

      div.help-text {
        display: block;
      }
    }
  }

  div.message,
  div.ready-for-l10n,
  div.needs-change {
    margin: 10px 0;
  }

  textarea {
    height: 100px;
    width: 350px;
  }
}

.html-rtl {
  #approve-modal {
    p.warning {
      padding: .5em 2em .5em 1em;
    }

    li {
      div.help-text {
        left: auto;
        right: 23px;
      }
    }
  }
}

#reject-modal {
  div.message {
    margin: 10px 0;
  }

  textarea {
    height: 100px;
    width: 350px;
  }
}

.needs-change {
  .comment {
    margin: 0 0 0 17px;

    label {
      display: block;
    }
  }
}

/* Style video modal */
div.video .kbox-container {
    width: 680px;
    height: 550px;
    text-align: left;
}

.html-rtl div.video .kbox-container {
    text-align: right;
}

/* document vote form */
.vote-wrap {
  background: #e7e7e7;
  margin: 20px 0;
  padding: 0 30px 6px 30px;
  position: relative;

  .document-vote {
    color: #000;
    font-size: 16px;

    input[type=submit], .btn {
      background-color: #000;
      border: none;
      border-radius: 4px;
      background: #000000;
      font-size: 16px;
      box-shadow: none;
      color: #fff;
      height: 32px;
      transition: all .1s;
      width: 94px;

      &:hover,
      &:focus {
        transform: scale(1.05);
      }
    }

    .header {
      padding-left: 10px;
      padding-right: 30px;
    }
  }

  .html-rtl & .document-vote .header {
    padding-left: 30px;
    padding-right: 10px;
  }
}

.document-vote {
  display: inline-block;
  vertical-align: top;

  input.active {
    background: #bbb;
    color: #fff;
  }

  form.busy {
    .wait {
      display: inline;
      margin: 0 0 0 15px;
      position: relative;
      top: 3px;
    }
  }
}

.html-rtl {
  .document-vote {
    form.busy {
      .wait {
        margin: 0 15px 0 0;
      }
    }
  }
}

/* Unhelpful vote survey */
aside {
  h4 {
    margin-bottom: 6px;
    margin-top: 24px;
    font-size: 12px;
    text-transform: uppercase;
  }

  .document-vote {
    span {
      display: block;
    }
  }
  #unhelpful-survey {
    margin-top: 10px;

    textarea {
      height: 65px;
      margin: 6px 12px;
      resize: vertical;
      width: calc(~"100% - 24px");
    }
  }
}

article {
  #unhelpful-survey {
    margin: 15px 0 0 20px;
    position: absolute;
    right: 0;
    top: 0;
    width: 300px;

    textarea {
      height: 65px;
      margin: 6px 0 2px 12px;
      resize: vertical;
      width: 275px;
    }

    &:after {
      background: #fff;
      box-shadow: -2px 2px 2px rgba(0,0,0,0.3);
      content: '';
      display: block;
      height: 10px;
      left: -5px;
      position: absolute;
      top: 15px;
      transform: rotate(45deg);
      width: 10px;
      z-index: 1;
    }
  }
}

#unhelpful-survey {
  background: #fff;
  border: solid 1px #ccc;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
  display: inline-block;
  z-index: 1;

  p {
    margin: 8px 12px;

    &.sorry {
      font-size: 20px;
    }
  }

  ul {
    list-style: none;
  }

  li {
    color: #fff;
    cursor: pointer;
    padding: 2px 0 2px 12px;
    position: relative;

    input {
      margin: 0 6px 3px 0;
    }

    label {
      font-weight: normal;
      margin: 0;
    }
  }

  .close-button {
    cursor: pointer;
    font-size: 24px;
    position: absolute;
    right: 8px;
    top: 0;

    &:before {
      content: '\00d7';
    }
  }

  .btn-submit {
    margin: 6px 14px;
    float: left;
  }

  .character-counter {
    font-size: 12px;
  }

  .disabled-reason {
    font-size: 12px;
    padding-top: 5px;
  }
}

#doc-watch {
  padding: 20px;
}

/* New Diffs */
.diff-this {
  margin: 15px 0;

  p {
    margin: 0;
  }

  table {
    border: 1px solid #ddd;
    width: 100%;
  }

  .from,
  .to {
    display: none;
  }

  .output {
    color: #333;
    font-size: 13px;
  }

  .fromLine {
    background: #ffdddd;
  }

  .toLine {
    background: #ddffdd;
  }

  .num {
    background: #ececec;
    border-right: 1px solid #ddd;
    color: #aaa;
    padding: 0 4px 0 6px;
    text-align: right;
    width: 15px;
  }

  .mark {
    font-family: Courier;
    padding: 0 6px;
    width: 8px;
  }

  ins {
    background: #aaffaa;
    color: #000;
    text-decoration: none;
  }

  del {
    background: #ffaaaa;
    color: #000;
    text-decoration: none;
  }
}

.document {
  #related-documents {
    padding-left: 80px;

    h4 {
      font-family: @OpenSans;
      font-size: 16px;
      margin: 0;
    }

    ul {
      list-style: none;
      margin: 0;
      padding: 0;

      > li {
        margin-top: 8px;

        > a {
          color: #000;
          font-weight: bold;
        }
      }
    }
  }
}

/* Ace syntax custom CSS */
#editor {
  border: 2px solid #F7F7F7;
  border-radius: 5px;
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;

  .CodeMirror {
    color: #666;
    font-size: 12px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
    height: 100%;
  }
}

#editor_wrapper {
  height: 500px;
  margin: 0 0 15px;
  position: relative;
}

.cm-quote {
  background-color: black;
  color: white !important;
}

.cm-variable,
.cm-tag {
  color:  #d98484 !important;
}

.cm-other.cm-link {
  color: #5757c2 !important;
}

.cm-bold {
  color: #000;
  font-weight: normal !important;
}

.cm-strikethrough {
  text-decoration: line-through;
}

.cm-italic {
  font-style: italic;
}

.cm-underline {
  text-decoration: underline;
}

.cm-comment {
  color: #090 !important;
}

.cm-editor .cm-identifier,
.cm-editor .cm-italic,
.cm-editor .cm-underline {
  color: #666666 !important;
}

.wiki-product-title {
  margin-left: 24px;

  > img {
    float: left;
    padding-top: 2px;
  }

  > a:link,
    a:visited {
    color: #000;
    float: left;
    font-size: 16px;
    padding-left: 20px;
    padding-top: 6px;
    text-decoration: none;
    width: 110px;
  }

  .html-rtl & {
    margin-left: 0;
    margin-right: 24px;

    > img {
      float: right;
    }

    > a:link,
      a:visited {
        float: right;
        padding-left: 0;
        padding-right: 20px;
      }
  }
}

#get-involved-box {
  margin-top: 100px;
  text-align: center;

  .btn {
    font-size: 16px;
    margin-bottom: 20px;
    padding: 8px 40px;
  }
}

.download-buttons {
  height: 80px;
  margin-top: -20px;

  > .download-firefox {
    padding-right: 10px;
  }
}
